<?= $this->Form->create('Taste', array(
    'url'      => '/admin_ukusi/save',
    'target'   => 'formDialogResultFrame',
    'enctype'  => 'multipart/form-data'
)) ?>

    <?= $this->Form->hidden('id', array('value' => @$data['Taste']['id'])) ?>
    <?= $this->Form->hidden('taste_group_id', array('value'=>@$data['Taste']['taste_group_id'])) ?>
    
    <p><?= $this->Form->text('name', array(
        'value'       => @$data['Taste']['name'],
        'placeholder' => 'Naziv...'
    )) ?></p>
    
    <p><?= $this->Html->image('ukusi/'.@$data['Taste']['image'] . '?w=200&h=200') ?>
    <?= $this->Form->hidden('image', array('value'=>@$data['Taste']['image']))?>
    <span class="info right">
        <?= $this->Form->file('image_upload', array('placeholder'=>'Nova slika...')) ?><br clear="all">
        (max: <?= ini_get('upload_max_filesize') ?>)
    </span></p>
    
    <p><?= $this->Form->textarea('description', array(
        'value'       => @$data['Taste']['description'],
        'placeholder' => 'Opis...'
    )) ?></p>

<?= $this->Form->end() ?>